package com.wuliming.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wuliming.common.utils.PageUtils;
import com.wuliming.gulimall.product.entity.AttrEntity;
import com.wuliming.gulimall.product.entity.AttrGroupEntity;
import com.wuliming.gulimall.product.entity.vo.req.AttrGroupReqVo;
import com.wuliming.gulimall.product.entity.vo.resp.AttrGroupRespVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author wuliming
 * @email wuliming@gmail.com
 * @date 2023-12-05 12:11:06
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, long catelogId);

    List<AttrEntity> getAttrRelation(Long attrgroupId);

    void removeBatch(AttrGroupReqVo[] reqVos);

    PageUtils getNoAttrRelation(Long attrgroupId, Map<String, Object> params);

    List<AttrGroupRespVo> getAttrGroupWithAttr(Long categoryId);
}

